package jl.com.util;

import jl.com.aliyun.check.AliYunOSS;
import jl.com.aliyun.config.ConfigProperties;
import jl.com.entity.Article;
import org.apache.commons.lang3.RandomStringUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.junit.Test;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.net.ssl.HttpsURLConnection;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtil {

	private static final Logger logger = LoggerFactory.getLogger(StringUtil.class);
	public static String replaceBlank(String str) {
		String dest = "";
		if (str!=null) {
			Pattern p = Pattern.compile("\\s*|\t|\r|\n");
			Matcher m = p.matcher(str);
			dest = m.replaceAll("");
		}
		return dest;
	}
	/*public static void main(String[] args) {
		//System.out.println(StringUtils.replaceBlank("just do it!"));
	}*/
	/*-----------------------------------
	笨方法：String s = "你要去除的字符串";
	        1.去除空格：s = s.replace('\\s','');
	        2.去除回车：s = s.replace('\n','');
	这样也可以把空格和回车去掉，其他也可以照这样做。
	注：\n 回车(\u000a) 
	\t 水平制表符(\u0009) 
	\s 空格(\u0008) 
	\r 换行(\u000d)*/

	/**
	 * 将图片中的src 上传到阿里云OSS上替换文本中的src路径
	 * @param htmlStr
	 * @return
	 */
	public static String getImgStr(String fileKey, String htmlStr) {
		List<String> list = new ArrayList<>();
		String img = "";
		Pattern p_image;
		Matcher m_image;
		// String regEx_img = "<img.*src=(.*?)[^>]*?>"; //图片链接地址
		String regEx_img = "<img.*src\\s*=\\s*(.*?)[^>]*?>";
		p_image = Pattern.compile(regEx_img, Pattern.CASE_INSENSITIVE);
		m_image = p_image.matcher(htmlStr);
		while (m_image.find()) {
			// 得到<img />数据
			img = m_image.group();
			// 匹配<img>中的src数据
			Matcher m = Pattern.compile("src\\s*=\\s*\"?(.*?)(\"|>|\\s+)").matcher(img);
			while (m.find()) {
				//先将base64转为file文件再上传到阿里云oss
				String savePath = FileUtils.getConTextPath()+"/image";//获取项目根目录
				FileUtils.createOrExistsDir(savePath);//判断项目根目录下面是否存在image文件夹，没有进行创建
				String pathUrl =  AliYunOSS.uploadImage(fileKey,m.group(1));
				htmlStr = htmlStr.replace(m.group(1),pathUrl);
				list.add(m.group(1));
			}
		}
		System.out.println(htmlStr);
		return htmlStr;
		//return list;
	}
	/**
	 * 查询文本中所有的src路径
	 * @param htmlStr
	 * @return
	 */
	public static List<String> getImgStcList(String htmlStr) {
		List<String> list = new ArrayList<>();
		String img = "";
		Pattern p_image;
		Matcher m_image;
		// String regEx_img = "<img.*src=(.*?)[^>]*?>"; //图片链接地址
		String regEx_img = "<img.*src\\s*=\\s*(.*?)[^>]*?>";
		p_image = Pattern.compile(regEx_img, Pattern.CASE_INSENSITIVE);
		m_image = p_image.matcher(htmlStr);
		while (m_image.find()) {
			// 得到<img />数据
			img = m_image.group();
			// 匹配<img>中的src数据
			Matcher m = Pattern.compile("src\\s*=\\s*\"?(.*?)(\"|>|\\s+)").matcher(img);
			while (m.find()) {
				list.add(m.group(1));
			}
		}
//		System.out.println(htmlStr);
		return list;
	}
	/**
	 * 查询文本中所有的data-src路径
	 * @param htmlStr
	 * @return
	 */
	public static List<String> getImgStcListTwo(String htmlStr) {
		List<String> list = new ArrayList<>();
		String img = "";
		Pattern p_image;
		Matcher m_image;
		// String regEx_img = "<img.*src=(.*?)[^>]*?>"; //图片链接地址
		String regEx_img = "<img.*data-src\\s*=\\s*(.*?)[^>]*?>";
		p_image = Pattern.compile(regEx_img, Pattern.CASE_INSENSITIVE);
		m_image = p_image.matcher(htmlStr);
		while (m_image.find()) {
			// 得到<img />数据
			img = m_image.group();
			// 匹配<img>中的src数据
			Matcher m = Pattern.compile("data-src\\s*=\\s*\"?(.*?)(\"|>|\\s+)").matcher(img);
			while (m.find()) {
				list.add(m.group(1));
			}
		}
//		System.out.println(htmlStr);
		return list;
	}


	@Test
	public void getUrl()throws Exception{
//		String html = "<section style=\"background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/Ljib4So7yuWjnE3HAcmLIQqwWBwmVkciaMnNCIKjIkSTElgpicbF5aK15OjgZZdNl3FXvtfutDgLeuvItaKbGk2Dg/640?wx_fmt=png&quot;);background-position: 0% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
//				"                <section style=\"background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/Ljib4So7yuWjnE3HAcmLIQqwWBwmVkciaM8EpEuiaSibh9k0VyNjpNM7vTibYEkVlxFfD1icWicxTn3lDJEAH7xZ5az4Q/640?wx_fmt=png&quot;);background-position: 100% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\"></section></section>";
//		Document doc = Jsoup.connect("https://mp.weixin.qq.com/s?src=11&timestamp=1594494854&ver=2454&signature=y*wypmyi4vGAat3HNdGfnIyscTdvALNf8rS2O4TYrdp-KPPmVVLj0W9G9rslSfoSzdEoDfiofTlwgcCgd4vdZmmpBXkOG3M0RdDQGl561g*MHwmOKfPfykNV9VjNsr0g&new=1")
//				.userAgent("Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; BLA-AL00 Build/HUAWEIBLA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/8.9 Mobile Safari/537.36")
//				.get();
//		Element body =  doc.body();
//		String boy = body.html();
		String html = "<div id=\"js_article\" class=\"rich_media \"><div class=\"rich_media_inner \"><div id=\"page-content\" class=\"rich_media_area_primary \"><div  class=\"rich_media_area_primary_inner \"><div id=\"img-content\" class=\"rich_media_wrp \"><h2 class=\"rich_media_title \" id=\"activity-name\"> “我劳动，我光荣”丨五一“扣好人生第一粒扣子”主题系列实践活动</h2><div class=\"rich_media_content \" id = \"js_content\"> <section data-support=\"96编辑器\" data-style-id=\"26584\">\n" +
                " <section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;\">\n" +
                "  <section style=\"display: inline-block;\">\n" +
                "   <section style=\"background-color: rgb(255, 235, 195);border-radius: 20px;display: inline-block;padding: 5px 10px;box-sizing: border-box;\">\n" +
                "    <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "     <p style=\"width: 1.5em;\"><img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791650429.jpg\" style=\"display: block;width: 1.5em;\" data-type=\"png\" data-ratio=\"0.972972972972973\" data-w=\"37\"></p>\n" +
                "     <section style=\"margin-right: 12px;margin-left: 12px;\">\n" +
                "      <p><strong><span style=\"font-family: 仿宋;color: rgb(0, 0, 0);font-size: 21px;\">“我劳动，我光荣”</span></strong><strong><span style=\"font-family: 仿宋;color: rgb(0, 0, 0);font-size: 21px;\"><span style=\"font-family:仿宋;\">丨五一</span>“</span></strong><strong><span style=\"font-family: 仿宋;color: rgb(0, 0, 0);font-size: 21px;\"><span style=\"font-family:仿宋;\">扣好人生第一粒扣子</span></span></strong><strong><span style=\"font-family: 仿宋;color: rgb(0, 0, 0);font-size: 21px;\">”</span></strong></p>\n" +
                "     </section>\n" +
                "    </section>\n" +
                "   </section>\n" +
                "  </section>\n" +
                " </section>\n" +
                "</section>\n" +
                "<section data-support=\"96编辑器\" data-style-id=\"26549\">\n" +
                " <section style=\"margin: 10px 0px;\">\n" +
                "  <p style=\"width: 4.2em;margin: 0px auto;letter-spacing: 2px;\"><img data-ratio=\"0.4125\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791650465.jpg\" data-type=\"gif\" data-w=\"80\" style=\"display: block;width:  4.2em;height: auto;\"></p>\n" +
                "  <section style=\"margin-top: -10px;border-width: 2px;border-style: solid;border-color: rgb(228, 98, 85);padding: 15px;box-sizing: border-box;\">\n" +
                "   <p style=\"text-align: center;\"><img class=\"rich_pages\" data-ratio=\"0.35\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791650534.jpg\" data-type=\"png\" data-w=\"600\" style=\"\"></p>\n" +
                "   <section style=\"text-indent: 2em;\">\n" +
                "    <span style=\"font-size: 16px;\">五月是温暖的季节，五月是青春的季节，五月是山花烂漫的季节。五月，也是最光荣的劳动者的季节！夏阳初盛的五月，长长的假期延迟了我们相聚的脚步，但它不能阻挡我们劳动的热情。值此一年一度的五一国际劳动节之际，为了让孩子感受“我劳动，我快乐”，亲历劳动的美；让孩子学会尊重他人的劳动成果，并爱上劳动，从小事、自己的事做起，培养学生的责任感和正确的劳动观念，我校面向全体学生开展了以“扣好人生第一粒扣子”为主题的“我劳动，我光荣”系列社会实践活动。</span>\n" +
                "    <br>\n" +
                "   </section>\n" +
                "   <p style=\"text-indent: 0px;padding: 0px;line-height: 150%;background: rgb(255, 255, 255);\"><span style=\"font-family: 宋体;letter-spacing: 0;font-size: 16px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-family:宋体;\">同学们，首先让我们一起来了解一下</span>“五一劳动节”的由来。</span></p>\n" +
                "   <p><iframe class=\"video_iframe rich_pages\" data-vidtype=\"2\" data-mpvid=\"wxv_1328148541432315909\" data-cover=\"http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2F56HicJJnvbfs94vUpwCIb9Z7qJYwMNQahFybWmsdrwwpKiaJGaYuNnMOCHV48L4RD5RObeKcanje9VKnfPnP6ReA%2F0%3Fwx_fmt%3Djpeg\" allowfullscreen frameborder=\"0\" data-ratio=\"1.7791666666666666\" data-w=\"854\" src=\"https://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&amp;action=mpvideo&amp;auto=0&amp;vid=wxv_1328148541432315909\"></iframe></p>\n" +
                "   <section data-support=\"96编辑器\" data-style-id=\"26573\">\n" +
                "    <section style=\"margin: 10px 0px;\">\n" +
                "     <section style=\"border-width: 2px;border-style: dashed;border-color: rgb(255, 110, 85);padding: 15px;border-radius: 10px;box-sizing: border-box;\">\n" +
                "      <p style=\"text-align: left;\"><span style=\"font-family: 宋体;letter-spacing: 0;font-size: 16px;background: rgb(255, 255, 255);\">&nbsp; &nbsp;&nbsp;<span style=\"font-family:宋体;\">在本次</span>“我劳动，我光荣”系列社会实践活动中，各个年级都涌现出了一批朝气蓬勃，积极向上的“劳动小能手”，快让我们去目睹他们的风采吧！</span></p>\n" +
                "     </section>\n" +
                "     <p style=\"width: 2em;margin-left: auto;margin-top: -38px;margin-right: 3px;\"><img data-ratio=\"1.125\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791651040.jpg\" data-type=\"gif\" data-w=\"48\" style=\"width: 2em;height: auto;\"></p>\n" +
                "    </section>\n" +
                "   </section>\n" +
                "  </section>\n" +
                " </section>\n" +
                "</section>\n" +
                "<section data-support=\"96编辑器\" data-style-id=\"26646\">\n" +
                " <section style=\"margin: 10px 0px;\">\n" +
                "  <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499046930.jpg&quot;);background-position: 100% 100%;background-repeat: repeat;padding: 15px;box-sizing: border-box;\">\n" +
                "   <section data-support=\"96编辑器\" data-style-id=\"24671\">\n" +
                "    <section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;\">\n" +
                "     <section style=\"margin-bottom: -20px;\">\n" +
                "      <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "       <section style=\"width: 48%;\" data-width=\"48%\">\n" +
                "        <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "         <p style=\"margin: 5px -5px -5px 5px;\"><img data-croporidata-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/56HicJJnvbfs94vUpwCIb9Z7qJYwMNQahfOh5R8wBemjg9icJJkVia2BkiaPzQPAJbhXHnTGuNW46AACCSIOMkvfTA/0?wx_fmt=jpeg\" data-cropx1=\"0\" data-cropx2=\"1080\" data-cropy1=\"108.41698841698843\" data-cropy2=\"1275.9845559845562\" data-ratio=\"1.0824074074074075\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791651080.jpg\" data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;width: 259px;border-radius: 8px;height: 280px;\"></p>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "       <section style=\"width: 48%;margin-left: 4%;\" data-width=\"48%\">\n" +
                "        <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "         <p style=\"margin: 5px 5px -5px -5px;\"><img data-croporidata-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/56HicJJnvbfs94vUpwCIb9Z7qJYwMNQahq3YgLhlvtouf4B9y0RTIYCMzSaNH0j8MjMXSIiaSibbR1kpSATOjwwEg/0?wx_fmt=jpeg\" data-cropx1=\"0\" data-cropx2=\"810\" data-cropy1=\"87.56756756756756\" data-cropy2=\"982.007722007722\" data-ratio=\"1.1049382716049383\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791651773.jpg\" data-type=\"jpeg\" data-w=\"810\" style=\"display: block;width: 259px;border-radius: 8px;height: 286px;\"></p>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "      </section>\n" +
                "     </section>\n" +
                "     <section style=\"display: inline-block;width: 2em;\">\n" +
                "      <p style=\"background-color: rgb(254, 254, 254);border-radius: 100%;transform: rotateZ(0deg);\"><img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791651844.jpg\" style=\"display: block;width: auto;\" data-type=\"gif\" data-ratio=\"1\" data-w=\"50\"></p>\n" +
                "     </section>\n" +
                "     <section style=\"margin-top: -15px;\">\n" +
                "      <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "       <section style=\"width: 48%;\" data-width=\"48%\">\n" +
                "        <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "         <p style=\"margin: -5px -5px 5px 5px;\"><img data-cropselx1=\"0\" data-cropselx2=\"259\" data-cropsely1=\"0\" data-cropsely2=\"166\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791651882.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 259px;border-radius: 8px;height: 194px;\"></p>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "       <section style=\"width: 48%;margin-left: 4%;\" data-width=\"48%\">\n" +
                "        <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "         <p style=\"margin: -5px 5px 5px -5px;\"><img data-cropselx1=\"0\" data-cropselx2=\"259\" data-cropsely1=\"0\" data-cropsely2=\"345\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791652381.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 460px;border-radius: 8px;height: 345px;\"></p>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "      </section>\n" +
                "     </section>\n" +
                "    </section>\n" +
                "   </section>\n" +
                "   <section>\n" +
                "    <section data-support=\"96编辑器\" data-style-id=\"24671\">\n" +
                "     <section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;\">\n" +
                "      <section style=\"margin-bottom: -20px;\">\n" +
                "       <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "        <section style=\"width: 48%;\" data-width=\"48%\">\n" +
                "         <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "          <p style=\"margin: 5px -5px -5px 5px;\"><img data-cropselx1=\"0\" data-cropselx2=\"259\" data-cropsely1=\"0\" data-cropsely2=\"166\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791652675.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 259px;border-radius: 8px;height: 194px;\"></p>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "        <section style=\"width: 48%;margin-left: 4%;\" data-width=\"48%\">\n" +
                "         <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "          <p style=\"margin: 5px 5px -5px -5px;\"><img data-croporidata-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/56HicJJnvbfs94vUpwCIb9Z7qJYwMNQahCWSqonxEzf3G7HicNriaHeREXCB8lCatRkyGiceDgiaRNja7uQC96ZMwnQ/0?wx_fmt=jpeg\" data-cropx1=\"0\" data-cropx2=\"1080\" data-cropy1=\"271.0424710424711\" data-cropy2=\"1142.5482625482628\" data-ratio=\"0.8074074074074075\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791653198.jpg\" data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;width: 259px;border-radius: 8px;height: 209px;\"></p>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "      </section>\n" +
                "      <section style=\"display: inline-block;width: 2em;\">\n" +
                "       <p style=\"background-color: rgb(254, 254, 254);border-radius: 100%;transform: rotateZ(0deg);\"><img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791651844.jpg\" style=\"display: block;width: auto;\" data-type=\"gif\" data-ratio=\"1\" data-w=\"50\"></p>\n" +
                "      </section>\n" +
                "      <section style=\"margin-top: -15px;\">\n" +
                "       <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "        <section style=\"width: 48%;\" data-width=\"48%\">\n" +
                "         <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "          <p style=\"margin: -5px -5px 5px 5px;\"><img data-cropselx1=\"0\" data-cropselx2=\"259\" data-cropsely1=\"0\" data-cropsely2=\"166\" data-ratio=\"1.3333333333333333\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791653522.jpg\" data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;width: 259px;border-radius: 8px;height: 345px;\"></p>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "        <section style=\"width: 48%;margin-left: 4%;\" data-width=\"48%\">\n" +
                "         <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "          <p style=\"margin: -5px 5px 5px -5px;\"><img data-cropselx1=\"0\" data-cropselx2=\"259\" data-cropsely1=\"90\" data-cropsely2=\"256\" data-ratio=\"1.3333333333333333\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791654032.jpg\" data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;width: 259px;border-radius: 8px;height: 345px;\"></p>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "      </section>\n" +
                "     </section>\n" +
                "    </section>\n" +
                "    <section>\n" +
                "     <section data-support=\"96编辑器\" data-style-id=\"24671\">\n" +
                "      <section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;\">\n" +
                "       <section style=\"margin-bottom: -20px;\">\n" +
                "        <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "         <section style=\"width: 48%;\" data-width=\"48%\">\n" +
                "          <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "           <p style=\"margin: 5px -5px -5px 5px;\"><img data-cropselx1=\"0\" data-cropselx2=\"259\" data-cropsely1=\"0\" data-cropsely2=\"166\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791654311.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 259px;border-radius: 8px;height: 194px;\"></p>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "         <section style=\"width: 48%;margin-left: 4%;\" data-width=\"48%\">\n" +
                "          <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "           <p style=\"margin: 5px 5px -5px -5px;\"><img data-croporidata-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/56HicJJnvbfs94vUpwCIb9Z7qJYwMNQahPCiaWiaGRPOrruXvFVSzhbXhUFvOYibhATrZqJDqajycVxpqibPibHfAzWw/0?wx_fmt=jpeg\" data-cropx1=\"0\" data-cropx2=\"1080\" data-cropy1=\"279.3822393822394\" data-cropy2=\"1105.0193050193052\" data-ratio=\"0.7657407407407407\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791654831.jpg\" data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;width: 259px;border-radius: 8px;height: 198px;\"></p>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "       <section style=\"display: inline-block;width: 2em;\">\n" +
                "        <p style=\"background-color: rgb(254, 254, 254);border-radius: 100%;transform: rotateZ(0deg);\"><img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791651844.jpg\" style=\"display: block;width: auto;\" data-type=\"gif\" data-ratio=\"1\" data-w=\"50\"></p>\n" +
                "       </section>\n" +
                "       <section style=\"margin-top: -15px;\">\n" +
                "        <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "         <section style=\"width: 48%;\" data-width=\"48%\">\n" +
                "          <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "           <p style=\"margin: -5px -5px 5px 5px;\"><img data-cropselx1=\"0\" data-cropselx2=\"259\" data-cropsely1=\"0\" data-cropsely2=\"166\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791655356.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 259px;border-radius: 8px;height: 194px;\"></p>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "         <section style=\"width: 48%;margin-left: 4%;\" data-width=\"48%\">\n" +
                "          <section style=\"border-style: solid;border-width: 2px;border-color: rgb(145, 198, 236);display: inline-block;border-radius: 8px;box-sizing: border-box;\">\n" +
                "           <p style=\"margin: -5px 5px 5px -5px;\"><img data-croporidata-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/56HicJJnvbfs94vUpwCIb9Z7qJYwMNQahOgnic8C91evbjJN9e2s4JWWN6XDWngP5cqpaNdwv4nF6wjZhyGjeqbQ/0?wx_fmt=jpeg\" data-cropx1=\"0\" data-cropx2=\"1080\" data-cropy1=\"250.19305019305023\" data-cropy2=\"1163.3976833976835\" data-ratio=\"0.8462962962962963\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791655619.jpg\" data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;width: 259px;border-radius: 8px;height: 219px;\"></p>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "      </section>\n" +
                "     </section>\n" +
                "     <section>\n" +
                "      <section data-support=\"96编辑器\" data-style-id=\"26547\">\n" +
                "       <section style=\"margin: 10px 0px;\">\n" +
                "        <section style=\"display: inline-block;\">\n" +
                "         <p style=\"text-align: center;\"><img data-croporidata-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/56HicJJnvbfs94vUpwCIb9Z7qJYwMNQahFV02XlgbtALeSIvCB8wEXR8wwH18OvDax2ygJ5uaca5qP8IpGo1J3A/0?wx_fmt=jpeg\" data-cropx1=\"0\" data-cropx2=\"600\" data-cropy1=\"132.4817518248175\" data-cropy2=\"622.992700729927\" data-ratio=\"0.8166666666666667\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791655893.jpg\" data-type=\"jpeg\" data-w=\"600\" style=\"display: block;border-radius: 20px;width: 548px;height: 448px;\"></p>\n" +
                "         <section style=\"margin-top: -17px;border-width: 2px;border-style: solid;border-color: rgb(239, 14, 0);border-radius: 0px 0px 20px 20px;padding: 20px 0px 8px;box-sizing: border-box;\">\n" +
                "          <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "           <p style=\"width: 1em;\"><img data-ratio=\"1\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791656155.jpg\" data-type=\"png\" data-w=\"46\" style=\"display: block;width: 1em;height: auto;\"></p>\n" +
                "           <section style=\"margin-right: 12px;margin-left: 12px;\">\n" +
                "            <p style=\"letter-spacing: 2px;\"><span style=\"color: #ec0e00;\">五一劳动最光荣</span></p>\n" +
                "           </section>\n" +
                "           <p style=\"width: 1em;\"><img data-ratio=\"1\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791656155.jpg\" data-type=\"png\" data-w=\"46\" style=\"display: block;width: 1em;height: auto;\"></p>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "      </section>\n" +
                "      <section>\n" +
                "       <section data-support=\"96编辑器\" data-style-id=\"25139\">\n" +
                "        <section style=\"margin-top: 10px;margin-bottom: 10px;\">\n" +
                "         <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047559.jpg&quot;);background-position: 0% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "          <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047607.jpg&quot;);background-position: 100% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "           <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047651.jpg&quot;);background-position: 0% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "            <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047700.jpg&quot;);background-position: 100% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "             <section style=\"border-style: solid;border-width: 2px;border-color: rgb(223, 170, 107);padding: 10px 20px 20px;box-sizing: border-box;\">\n" +
                "              <section style=\"margin-top: 10px;display: flex;justify-content: center;\">\n" +
                "               <section style=\"width: 49%;\" data-width=\"49%\">\n" +
                "                <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"1.5\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791656235.jpg\" data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;width: 247px;height: 371px;\"></p>\n" +
                "               </section>\n" +
                "               <section style=\"width: 49%;margin-left: 2%;\" data-width=\"49%\">\n" +
                "                <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"1.5\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791656774.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 247px;height: 371px;\"></p>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "       <section data-support=\"96编辑器\" data-style-id=\"25139\">\n" +
                "        <section style=\"margin-top: 10px;margin-bottom: 10px;\">\n" +
                "         <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047559.jpg&quot;);background-position: 0% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "          <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047607.jpg&quot;);background-position: 100% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "           <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047651.jpg&quot;);background-position: 0% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "            <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047700.jpg&quot;);background-position: 100% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "             <section style=\"border-style: solid;border-width: 2px;border-color: rgb(223, 170, 107);padding: 10px 20px 20px;box-sizing: border-box;\">\n" +
                "              <section style=\"margin-top: 10px;display: flex;justify-content: center;\">\n" +
                "               <section style=\"width: 49%;\" data-width=\"49%\">\n" +
                "                <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"1.4981273408239701\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791657533.jpg\" data-type=\"jpeg\" data-w=\"534\" style=\"display: block;width: 247px;height: 370px;\"></p>\n" +
                "               </section>\n" +
                "               <section style=\"width: 49%;margin-left: 2%;\" data-width=\"49%\">\n" +
                "                <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"1.3328125\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791657804.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 247px;height: 329px;\"></p>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "       <section data-support=\"96编辑器\" data-style-id=\"25139\">\n" +
                "        <section style=\"margin-top: 10px;margin-bottom: 10px;\">\n" +
                "         <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047559.jpg&quot;);background-position: 0% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "          <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047607.jpg&quot;);background-position: 100% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "           <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047651.jpg&quot;);background-position: 0% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "            <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047700.jpg&quot;);background-position: 100% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "             <section style=\"border-style: solid;border-width: 2px;border-color: rgb(223, 170, 107);padding: 10px 20px 20px;box-sizing: border-box;\">\n" +
                "              <section style=\"margin-top: 10px;display: flex;justify-content: center;\">\n" +
                "               <section style=\"width: 49%;\" data-width=\"49%\">\n" +
                "                <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791658548.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 247px;height: 185px;\"></p>\n" +
                "               </section>\n" +
                "               <section style=\"width: 49%;margin-left: 2%;\" data-width=\"49%\">\n" +
                "                <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791658812.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 247px;height: 185px;\"></p>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "       <section>\n" +
                "        <section data-support=\"96编辑器\" data-style-id=\"25139\">\n" +
                "         <section style=\"margin-top: 10px;margin-bottom: 10px;\">\n" +
                "          <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047559.jpg&quot;);background-position: 0% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "           <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047607.jpg&quot;);background-position: 100% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "            <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047651.jpg&quot;);background-position: 0% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "             <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047700.jpg&quot;);background-position: 100% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "              <section style=\"border-style: solid;border-width: 2px;border-color: rgb(223, 170, 107);padding: 10px 20px 20px;box-sizing: border-box;\">\n" +
                "               <section style=\"margin-top: 10px;display: flex;justify-content: center;\">\n" +
                "                <section style=\"width: 49%;\" data-width=\"49%\">\n" +
                "                 <p><img data-croporidata-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/56HicJJnvbfs94vUpwCIb9Z7qJYwMNQahN52HELDg7bEu7fAICXYDRo92txaiclW6TpTZ3iahtY82DItjnLFWnqNw/0?wx_fmt=jpeg\" data-cropx1=\"0\" data-cropx2=\"1080\" data-cropy1=\"323.5627530364372\" data-cropy2=\"1268.0161943319836\" data-ratio=\"0.8759259259259259\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791659322.jpg\" data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;width: 247px;height: 216px;\"></p>\n" +
                "                </section>\n" +
                "                <section style=\"width: 49%;margin-left: 2%;\" data-width=\"49%\">\n" +
                "                 <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791660292.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 247px;height: 185px;\"></p>\n" +
                "                </section>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "        <section data-support=\"96编辑器\" data-style-id=\"25139\">\n" +
                "         <section style=\"margin-top: 10px;margin-bottom: 10px;\">\n" +
                "          <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047559.jpg&quot;);background-position: 0% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "           <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047607.jpg&quot;);background-position: 100% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "            <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047651.jpg&quot;);background-position: 0% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "             <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047700.jpg&quot;);background-position: 100% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "              <section style=\"border-style: solid;border-width: 2px;border-color: rgb(223, 170, 107);padding: 10px 20px 20px;box-sizing: border-box;\">\n" +
                "               <section style=\"margin-top: 10px;display: flex;justify-content: center;\">\n" +
                "                <section style=\"width: 49%;\" data-width=\"49%\">\n" +
                "                 <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"1.3328125\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791660570.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 247px;height: 329px;\"></p>\n" +
                "                </section>\n" +
                "                <section style=\"width: 49%;margin-left: 2%;\" data-width=\"49%\">\n" +
                "                 <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"1.3333333333333333\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791661291.jpg\" data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;width: 247px;height: 329px;\"></p>\n" +
                "                </section>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "        <section data-support=\"96编辑器\" data-style-id=\"25139\">\n" +
                "         <section style=\"margin-top: 10px;margin-bottom: 10px;\">\n" +
                "          <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047559.jpg&quot;);background-position: 0% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "           <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047607.jpg&quot;);background-position: 100% 0%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "            <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047651.jpg&quot;);background-position: 0% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "             <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499047700.jpg&quot;);background-position: 100% 100%;background-repeat: no-repeat;background-attachment: scroll;background-size: 6%;\">\n" +
                "              <section style=\"border-style: solid;border-width: 2px;border-color: rgb(223, 170, 107);padding: 10px 20px 20px;box-sizing: border-box;\">\n" +
                "               <section style=\"margin-top: 10px;display: flex;justify-content: center;\">\n" +
                "                <section style=\"width: 49%;\" data-width=\"49%\">\n" +
                "                 <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"1.3316666666666668\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791661804.jpg\" data-type=\"jpeg\" data-w=\"1200\" style=\"display: block;width: 247px;height: 329px;\"></p>\n" +
                "                </section>\n" +
                "                <section style=\"width: 49%;margin-left: 2%;\" data-width=\"49%\">\n" +
                "                 <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"180\" data-ratio=\"1.3333333333333333\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791662558.jpg\" data-type=\"jpeg\" data-w=\"600\" style=\"display: block;width: 247px;height: 329px;\"></p>\n" +
                "                </section>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "        <section>\n" +
                "         <section data-support=\"96编辑器\" data-style-id=\"26461\">\n" +
                "          <section style=\"margin: 10px 0px;text-align: center;\">\n" +
                "           <section style=\"display: inline-block;\">\n" +
                "            <section style=\"width: 90%;border-top: 1px solid rgb(163, 212, 255);border-right: 1px solid rgb(163, 212, 255);border-left: 1px solid rgb(163, 212, 255);margin: 0px auto;height: 20px;border-bottom: none;box-sizing: border-box;\" data-width=\"90%\">\n" +
                "             <br>\n" +
                "            </section>\n" +
                "            <section style=\"border-width: 1px;border-style: solid;border-color: rgb(163, 212, 255);padding: 0px 8px;box-sizing: border-box;\">\n" +
                "             <section style=\"margin: -10px 0px;\">\n" +
                "              <p style=\"text-align: center;\"><img data-croporidata-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/56HicJJnvbfs94vUpwCIb9Z7qJYwMNQahp5X0N9j5Lz6ENxpIIH5Ir8ib4ZFGicBVXEYNnZMyEsvHq9Uch9l95WcQ/0?wx_fmt=jpeg\" data-cropx1=\"0\" data-cropx2=\"1280\" data-cropy1=\"0\" data-cropy2=\"1271.741935483871\" data-ratio=\"0.99296875\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791662808.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 465px;height: 462px;\"></p>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "            <section style=\"width: 90%;border-right: 1px solid rgb(163, 212, 255);border-bottom: 1px solid rgb(163, 212, 255);border-left: 1px solid rgb(163, 212, 255);margin: 0px auto;height: 20px;border-top: none;box-sizing: border-box;\" data-width=\"90%\">\n" +
                "             <br>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "         <section>\n" +
                "          <section data-support=\"96编辑器\" data-style-id=\"24852\">\n" +
                "           <section style=\"margin-left: 3px;margin-top: 20px;margin-bottom: 20px;\">\n" +
                "            <section style=\"display: flex;justify-content: center;align-items: flex-end;\">\n" +
                "             <section style=\"width: 60%;margin-bottom: 30px;transform: rotateZ(-5deg);\" data-width=\"60%\">\n" +
                "              <section style=\"border-style: dotted;border-width: 2px;border-color: rgb(162, 189, 232);padding: 3px;background-color: rgb(254, 254, 254);box-sizing: border-box;\">\n" +
                "               <section style=\"border-style: solid;border-width: 2px;border-color: rgb(162, 189, 232);padding: 5px;box-sizing: border-box;\">\n" +
                "                <p><img data-cropselx1=\"0\" data-cropselx2=\"303\" data-cropsely1=\"0\" data-cropsely2=\"456\" data-ratio=\"0.6640625\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791663096.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 578px;height: 384px;\"></p>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "              <section style=\"width: 2.8em;\">\n" +
                "               <p style=\"text-align: center;letter-spacing: 2px;\"><img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791663595.jpg\" style=\"display: block;width: auto;\" data-type=\"gif\" data-ratio=\"0.7857142857142857\" data-w=\"70\"></p>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "             <section style=\"margin-left: -35px;width: 45%;transform: rotateZ(3deg);\" data-width=\"45%\">\n" +
                "              <section style=\"width: 2.8em;margin-left: auto;\">\n" +
                "               <p style=\"text-align: center;letter-spacing: 2px;\"><img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791663846.jpg\" style=\"display:block;\" data-type=\"gif\" data-ratio=\"0.7746478873239436\" data-w=\"71\"></p>\n" +
                "              </section>\n" +
                "              <section style=\"border-style: dotted;border-width: 2px;border-color: rgb(162, 189, 232);padding: 3px;background-color: rgb(254, 254, 254);box-sizing: border-box;\">\n" +
                "               <section style=\"border-style: solid;border-width: 2px;border-color: rgb(162, 189, 232);padding: 5px;box-sizing: border-box;\">\n" +
                "                <p><img data-cropselx1=\"0\" data-cropselx2=\"221\" data-cropsely1=\"1\" data-cropsely2=\"166\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791663902.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 221px;height: 166px;\"></p>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "          <section data-support=\"96编辑器\" data-style-id=\"24876\">\n" +
                "           <section style=\"margin: 25px 5px;\">\n" +
                "            <section style=\"display: flex;justify-content: center;align-items: flex-end;\">\n" +
                "             <section style=\"width: 58%;transform: rotateZ(-3deg);\" data-width=\"58%\">\n" +
                "              <section style=\"border-style: dotted;border-width: 2px;border-color: rgb(157, 201, 230);padding: 3px;background-color: rgb(254, 254, 254);box-sizing: border-box;\">\n" +
                "               <section style=\"border-style: solid;border-width: 2px;border-color: rgb(157, 201, 230);padding: 5px;box-sizing: border-box;\">\n" +
                "                <p><img data-cropselx1=\"0\" data-cropselx2=\"288\" data-cropsely1=\"0\" data-cropsely2=\"192\" data-ratio=\"0.4609375\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791664644.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 417px;height: 192px;\"></p>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "              <section style=\"width: 50%;margin-right: auto;\" data-width=\"50%\">\n" +
                "               <p style=\"text-align: center;letter-spacing: 2px;\"><img data-ratio=\"0.34130434782608693\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791664899.jpg\" data-type=\"png\" data-w=\"460\" style=\"display: block;width: auto;\"></p>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "             <section style=\"width: 40%;margin-left: 2%;\" data-width=\"40%\">\n" +
                "              <section style=\"width: 70%;margin-left: auto;\" data-width=\"70%\">\n" +
                "               <p style=\"text-align: center;letter-spacing: 2px;\"><img data-ratio=\"0.34130434782608693\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791664961.jpg\" data-type=\"png\" data-w=\"460\" style=\"display: block;width: auto;\"></p>\n" +
                "              </section>\n" +
                "              <section style=\"margin-top: 10px;transform: rotateZ(5deg);\">\n" +
                "               <section style=\"border-style: dotted;border-width: 2px;border-color: rgb(157, 201, 230);padding: 3px;background-color: rgb(254, 254, 254);box-sizing: border-box;\">\n" +
                "                <section style=\"border-style: solid;border-width: 2px;border-color: rgb(157, 201, 230);padding: 5px;box-sizing: border-box;\">\n" +
                "                 <p><img data-cropselx1=\"1\" data-cropselx2=\"192\" data-cropsely1=\"0\" data-cropsely2=\"127\" data-ratio=\"0.74921875\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791665000.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 191px;height: 143px;\"></p>\n" +
                "                </section>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "          <section data-support=\"96编辑器\" data-style-id=\"24762\">\n" +
                "           <section style=\"margin-top: 20px;margin-bottom: 20px;\">\n" +
                "            <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "             <section style=\"width: 49%;\" data-width=\"49%\">\n" +
                "              <section style=\"display: flex;align-items: flex-start;\">\n" +
                "               <section style=\"width: 140px;height: 1px;background-color: rgb(255, 76, 65);\">\n" +
                "                <br>\n" +
                "               </section>\n" +
                "               <section style=\"margin-left: 10px;margin-top: -5px;width: 8px;height: 8px;background-color: rgb(255, 76, 65);\">\n" +
                "                <br>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "              <section style=\"margin-top: -3px;display: inline-block;border-width: 1px;border-left-style: solid;border-color: rgb(255, 76, 65);border-right-style: solid;padding: 10px;box-sizing: border-box;\">\n" +
                "               <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"0\" data-cropsely2=\"149\" data-ratio=\"0.75\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791665746.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 247px;height: 185px;\"></p>\n" +
                "              </section>\n" +
                "              <section style=\"margin-top: -8px;display: flex;align-items: flex-start;\">\n" +
                "               <section style=\"margin-left: auto;margin-top: -5px;width: 8px;height: 8px;background-color: rgb(255, 76, 65);\">\n" +
                "                <br>\n" +
                "               </section>\n" +
                "               <section style=\"margin-left: 10px;width: 140px;height: 1px;background-color: rgb(255, 76, 65);\">\n" +
                "                <br>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "             <section style=\"width: 49%;margin-left: 2%;\" data-width=\"49%\">\n" +
                "              <section style=\"display: flex;align-items: flex-start;\">\n" +
                "               <section style=\"width: 140px;height: 1px;background-color: rgb(255, 76, 65);\">\n" +
                "                <br>\n" +
                "               </section>\n" +
                "               <section style=\"margin-left: 10px;margin-top: -5px;width: 8px;height: 8px;background-color: rgb(255, 76, 65);\">\n" +
                "                <br>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "              <section style=\"margin-top: -3px;display: inline-block;border-width: 1px;border-left-style: solid;border-color: rgb(255, 76, 65);border-right-style: solid;padding: 10px;box-sizing: border-box;\">\n" +
                "               <p><img data-cropselx1=\"0\" data-cropselx2=\"247\" data-cropsely1=\"13\" data-cropsely2=\"162\" data-ratio=\"0.7109375\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791666270.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 247px;height: 176px;\"></p>\n" +
                "              </section>\n" +
                "              <section style=\"margin-top: -8px;display: flex;align-items: flex-start;\">\n" +
                "               <section style=\"margin-left: auto;margin-top: -5px;width: 8px;height: 8px;background-color: rgb(255, 76, 65);\">\n" +
                "                <br>\n" +
                "               </section>\n" +
                "               <section style=\"margin-left: 10px;width: 140px;height: 1px;background-color: rgb(255, 76, 65);\">\n" +
                "                <br>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "          <section data-support=\"96编辑器\" data-style-id=\"24564\">\n" +
                "           <section style=\"margin-top: 10px;margin-bottom: 10px;\">\n" +
                "            <section style=\"display: flex;justify-content: center;align-items: center;\">\n" +
                "             <section style=\"width: 60%;transform: rotateZ(3deg);\" data-width=\"60%\">\n" +
                "              <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499048625.jpg&quot;);background-position: 0% 0%;background-repeat: repeat-x;background-attachment: scroll;background-size: 100%;box-sizing: border-box;\">\n" +
                "               <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499048625.jpg&quot;);background-position: 100% 100%;background-repeat: repeat-x;background-attachment: scroll;background-size: 100%;box-sizing: border-box;\">\n" +
                "                <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499048716.jpg&quot;);background-position: 0% 0%;background-repeat: repeat-y;background-attachment: scroll;background-size: 2%;box-sizing: border-box;\">\n" +
                "                 <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499048716.jpg&quot;);background-position: 100% 0%;background-repeat: repeat-y;background-attachment: scroll;background-size: 2%;box-sizing: border-box;padding: 10px;\">\n" +
                "                  <p><img data-cropselx1=\"0\" data-cropselx2=\"309\" data-cropsely1=\"0\" data-cropsely2=\"206\" data-ratio=\"0.64921875\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791666759.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 317px;height: 206px;\"></p>\n" +
                "                 </section>\n" +
                "                </section>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "             <section style=\"width: 13%;margin-left: 40px;transform: rotateY(180deg);\" data-width=\"13%\">\n" +
                "              <p><img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791667247.jpg\" data-type=\"gif\" data-ratio=\"1.0151515151515151\" data-w=\"66\"></p>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "            <section style=\"margin-top: 10px;display: flex;justify-content: center;align-items: center;\">\n" +
                "             <section style=\"width: 11%;\" data-width=\"11%\">\n" +
                "              <p><img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791667247.jpg\" style=\"width: auto;\" data-type=\"gif\" data-ratio=\"1.0151515151515151\" data-w=\"66\"></p>\n" +
                "             </section>\n" +
                "             <section style=\"margin-left: 40px;width: 60%;transform: rotateZ(-5deg);\" data-width=\"60%\">\n" +
                "              <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499048625.jpg&quot;);background-position: 0% 0%;background-repeat: repeat-x;background-attachment: scroll;background-size: 100%;box-sizing: border-box;\">\n" +
                "               <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499048625.jpg&quot;);background-position: 100% 100%;background-repeat: repeat-x;background-attachment: scroll;background-size: 100%;box-sizing: border-box;\">\n" +
                "                <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499048716.jpg&quot;);background-position: 0% 0%;background-repeat: repeat-y;background-attachment: scroll;background-size: 2%;box-sizing: border-box;\">\n" +
                "                 <section style=\"background-image: url(&quot;https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1594499048716.jpg&quot;);background-position: 100% 0%;background-repeat: repeat-y;background-attachment: scroll;background-size: 2%;box-sizing: border-box;padding: 10px;\">\n" +
                "                  <p style=\"text-align: center;\"><img class=\"rich_pages\" data-ratio=\"0.5625\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791667524.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"\"></p>\n" +
                "                 </section>\n" +
                "                </section>\n" +
                "               </section>\n" +
                "              </section>\n" +
                "             </section>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "          <section data-support=\"96编辑器\" data-style-id=\"26606\">\n" +
                "           <section style=\"margin: 10px 0px;\">\n" +
                "            <section>\n" +
                "             <p style=\"text-align: center;letter-spacing: 2px;\"><img class=\"rich_pages\" data-cropselx1=\"0\" data-cropselx2=\"548\" data-cropsely1=\"0\" data-cropsely2=\"344\" data-ratio=\"0.75\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791668121.jpg\" data-type=\"jpeg\" data-w=\"1280\" style=\"display: block;width: 548px;height: 411px;\"></p>\n" +
                "             <p style=\"text-align: center;\"><img class=\"rich_pages\" data-backh=\"751\" data-backw=\"439\" data-ratio=\"1.7107061503416856\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791668389.jpg\" data-type=\"png\" data-w=\"439\" style=\"width: 100%;height: auto;\"></p>\n" +
                "            </section>\n" +
                "            <p style=\"text-align: center;\"><img class=\"rich_pages\" data-ratio=\"1.0678260869565217\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791668633.jpg\" data-type=\"png\" data-w=\"575\" style=\"\"></p>\n" +
                "            <p style=\"text-align: center;\"><img class=\"rich_pages\" data-backh=\"728\" data-backw=\"429\" data-ratio=\"1.696969696969697\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791668672.jpg\" data-type=\"png\" data-w=\"429\" style=\"width: 100%;height: auto;\"></p>\n" +
                "            <p style=\"text-align: center;\"><img class=\"rich_pages\" data-backh=\"266\" data-backw=\"427\" data-ratio=\"0.6229508196721312\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791668701.jpg\" data-type=\"png\" data-w=\"427\" style=\"width: 100%;height: auto;\"></p>\n" +
                "            <p style=\"text-align: center;\"><img class=\"rich_pages\" data-backh=\"718\" data-backw=\"428\" data-ratio=\"1.6775700934579438\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791668735.jpg\" data-type=\"png\" data-w=\"428\" style=\"width: 100%;height: auto;\"></p>\n" +
                "            <p style=\"text-align: center;\"><img class=\"rich_pages\" data-backh=\"569\" data-backw=\"431\" data-ratio=\"1.320185614849188\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791668764.jpg\" data-type=\"png\" data-w=\"431\" style=\"width: 100%;height: auto;\"></p>\n" +
                "            <section style=\"margin: 5px 0px;\">\n" +
                "             <img data-ratio=\"0.04408817635270541\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791668800.jpg\" data-type=\"gif\" data-w=\"499\" style=\"display: block;\">\n" +
                "             <p style=\"text-align: left;text-indent: 2em;\"><span style=\"font-family: 宋体;font-size: 16px;text-align: left;text-indent: 2em;\">“生活即教育，行为即课程”，在居家抗“疫”的特殊时期，让学生们主动参与到各项社会劳动实践中，积极学习各种生活技能，并努力尝试各种劳动创作，不仅能够促进学生劳动技能的发展，增进亲子关系，也能更好的培养孩子自立自强的精神，以及珍惜劳动成果的优秀品质！</span><span style=\"font-family: 宋体;font-size: 16px;text-align: left;text-indent: 2em;\">同学们，让我们把劳动光荣的精神铭记在心间，用双手去创造属于自己的美好人生吧！</span></p>\n" +
                "            </section>\n" +
                "           </section>\n" +
                "          </section>\n" +
                "         </section>\n" +
                "        </section>\n" +
                "       </section>\n" +
                "      </section>\n" +
                "     </section>\n" +
                "    </section>\n" +
                "   </section>\n" +
                "  </section>\n" +
                " </section>\n" +
                "</section>\n" +
                "<section>\n" +
                " <section data-support=\"96编辑器\" data-style-id=\"26602\">\n" +
                "  <section style=\"margin: 10px 0px;\">\n" +
                "   <section style=\"border-width: 2px;border-style: solid;border-color: rgb(254, 124, 94);border-radius: 8px;padding: 10px;text-align: center;box-sizing: border-box;\">\n" +
                "    <p style=\"text-align: center;margin: 5px 0px;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;color: #ff4413;\">编辑&nbsp;钟佳琪 审核 刘富开</span></p>\n" +
                "    <section style=\"border-top: 2px dashed rgb(255, 68, 19);display: inline-block;padding: 5px 0px;box-sizing: border-box;\">\n" +
                "     <span style=\"color: #ff4413;\">图片 班主任 家长 学生</span>\n" +
                "    </section>\n" +
                "   </section>\n" +
                "   <section style=\"border-width: 2px;border-style: solid;border-color: rgb(254, 124, 94);border-radius: 8px;padding: 10px;text-align: center;box-sizing: border-box;\">\n" +
                "    <section style=\"margin-top: 10px;\">\n" +
                "     <section style=\"width: 8em;border-width: 2px;border-style: dashed;border-color: rgb(255, 68, 19);border-radius: 8px;margin: 0px auto;box-shadow: rgb(255, 199, 174) 3px 3px 5px;box-sizing: border-box;\">\n" +
                "      <img data-cropselx1=\"0\" data-cropselx2=\"132\" data-cropsely1=\"0\" data-cropsely2=\"132\" data-ratio=\"1\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791669530.jpg\" data-type=\"jpeg\" data-w=\"258\" style=\"display: block;width: 132px;border-radius: 8px;height: 132px;\">\n" +
                "     </section>\n" +
                "    </section>\n" +
                "    <section style=\"margin-top: 10px;\">\n" +
                "     <p style=\"letter-spacing: 2px;\"><span style=\"color: #ff4413;\">获取劳动节更多精彩</span></p>\n" +
                "    </section>\n" +
                "   </section>\n" +
                "  </section>\n" +
                " </section>\n" +
                " <section>\n" +
                "  <p><br></p>\n" +
                " </section>\n" +
                " <p style=\"text-align: center;\"><img class=\"rich_pages\" data-ratio=\"1.3333333333333333\" data-s=\"300,640\" src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1588791669565.jpg\" data-type=\"jpeg\" data-w=\"720\" style=\"\"></p>\n" +
                " <p><br></p>\n" +
                "</section>\n" +
                "<p><br></p></div></div></div></div></div></div>";


		Document jsoup = Jsoup.parse(html);
//		Elements elements = jsoup.select("section");
//        elements.addAll(jsoup.select("div"));
        Elements elements = jsoup.select("iframe");
        System.out.println(elements.html());
		List<String> data_srcs = new ArrayList<>();
		for (Element element : elements) {
//			String img = element.attr("style");
//            String img = element.attr("data-cover");
//            String imgUrlCode = img;
//            System.out.println(img);
//
//            //url解码
//            img = HtmUtil.getURLDecoderString(img);
//            //将图片转换成base64
//            String base64 =  ImgUtil.imgBase64(img);
//            base64 = "data:image/jpeg;base64,"+base64;
//            //将base64编码的图片上传至阿里云并返回图片链接
//            String  path = AliYunOSS.uploadImage(ConfigProperties.resource.getString("fileName")+System.currentTimeMillis()+".jpg",base64);
//            //url编码
//            path = HtmUtil.getURLCoderString(path);
//            html = html.replace(imgUrlCode,path);


//			if (img.indexOf("https") != -1){
//				String htps =  img.substring(img.indexOf("(\"")+2,img.indexOf("\")"));
//				data_srcs.add(htps);
////				System.out.println(htps);
//			}
		}
//        System.out.println(html);
//		Map<String,Object> map =  HtmUtil.updateSrcAliyunTo(data_srcs,html);//将原图片src路径替换成阿里云路径
//		String resultHtml = map.get("html").toString();
//		System.out.println(resultHtml);
	}

	@Test
	public  void dd ()throws Exception {
//        		Document doc = Jsoup.connect("https://mp.weixin.qq.com/s?src=11&timestamp=1594548146&ver=2456&signature=46PE9eI*idjGp*nSXRidlmIotMEzWjiAznByaobr3KuQUVZfduZbfztt8vXJYEyM4d7fOhyoaF70Qvh*nvAXe60WJZOkVMYepTzXc4KIrc5uuP7ZhtqirDK7qccPQVyF&new=1")
//				.userAgent("Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; BLA-AL00 Build/HUAWEIBLA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/8.9 Mobile Safari/537.36")
//				.get();
//		Element body =  doc.body();
//		String boy = body.html();
//        System.out.println(boy);

//        String html = " <p><iframe class=\"video_iframe rich_pages\" data-vidtype=\"2\" data-mpvid=\"wxv_1328148541432315909\" data-cover=\"https%3A%2F%2Fzhangsan-oss.oss-accelerate.aliyuncs.com%2Fspider%2F1594502014265.jpg\" allowfullscreen frameborder=\"0\" data-ratio=\"1.7791666666666666\" data-w=\"854\" src=\"https://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&amp;action=mpvideo&amp;auto=0&amp;vid=wxv_13281485414323159091\"></iframe></p>\n" +
//                "    <p><iframe class=\"video_iframe rich_pages\" data-vidtype=\"2\" data-mpvid=\"wxv_1328148541432315909\" data-cover=\"https%3A%2F%2Fzhangsan-oss.oss-accelerate.aliyuncs.com%2Fspider%2F1594502014265.jpg\" allowfullscreen frameborder=\"0\" data-ratio=\"1.7791666666666666\" data-w=\"854\" src=\"https://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&amp;action=mpvideo&amp;auto=0&amp;vid=wxv_13281485414323159092\"></iframe></p>\n" +
//                "    <p><iframe class=\"video_iframe rich_pages\" data-vidtype=\"2\" data-mpvid=\"wxv_1328148541432315909\" data-cover=\"https%3A%2F%2Fzhangsan-oss.oss-accelerate.aliyuncs.com%2Fspider%2F1594502014265.jpg\" allowfullscreen frameborder=\"0\" data-ratio=\"1.7791666666666666\" data-w=\"854\" src=\"https://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&amp;action=mpvideo&amp;auto=0&amp;vid=wxv_13281485414323159093\"></iframe></p>\n" +
//                "  <img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1593543657618.jpg\" style=\"width: 100%;display: block;\" data-width=\"100%\" data-type=\"png\" data-ratio=\"0.11293260473588343\" data-w=\"549\">\n" +
//                "    <img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1593543657618.jpg\" style=\"width: 100%;display: block;\" data-width=\"100%\" data-type=\"png\" data-ratio=\"0.11293260473588343\" data-w=\"549\">\n" +
//                "     ";

		String html = " <p><iframe class=\"video_iframe rich_pages\" data-vidtype=\"2\" data-mpvid=\"wxv_1328148541432315909\" data-cover=\"https%3A%2F%2Fzhangsan-oss.oss-accelerate.aliyuncs.com%2Fspider%2F1594502014265.jpg\" allowfullscreen frameborder=\"0\" data-ratio=\"1.7791666666666666\" data-w=\"854\" src=\"https://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&amp;action=mpvideo&amp;auto=0&amp;vid=wxv_13281485414323159091\"></iframe></p>\n" +
				"    <p><iframe class=\"video_iframe rich_pages\" data-vidtype=\"2\" data-mpvid=\"wxv_1328148541432315909\" data-cover=\"https%3A%2F%2Fzhangsan-oss.oss-accelerate.aliyuncs.com%2Fspider%2F1594502014265.jpg\" allowfullscreen frameborder=\"0\" data-ratio=\"1.7791666666666666\" data-w=\"854\" src=\"https://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&amp;action=mpvideo&amp;auto=0&amp;vid=wxv_13281485414323159092\"></iframe></p>\n" +
				"    <p><iframe class=\"video_iframe rich_pages\" data-vidtype=\"2\" data-mpvid=\"wxv_1328148541432315909\" data-cover=\"https%3A%2F%2Fzhangsan-oss.oss-accelerate.aliyuncs.com%2Fspider%2F1594502014265.jpg\" allowfullscreen frameborder=\"0\" data-ratio=\"1.7791666666666666\" data-w=\"854\" src=\"https://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&amp;action=mpvideo&amp;auto=0&amp;vid=wxv_13281485414323159093\"></iframe></p>\n" +
				"  <img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1593543657618.jpg\" style=\"width: 100%;display: block;\" data-width=\"100%\" data-type=\"png\" data-ratio=\"0.11293260473588343\" data-w=\"549\">\n" +
				"    <img src=\"https://zhangsan-oss.oss-accelerate.aliyuncs.com/spider/1593543657618.jpg\" style=\"width: 100%;display: block;\" data-width=\"100%\" data-type=\"png\" data-ratio=\"0.11293260473588343\" data-w=\"549\">\n" +
				"     ";
//        System.out.println(HtmUtil.iframeImg(html));
        Document jsoup = Jsoup.parse(html);
        Elements elements = jsoup.select("iframe");
		elements.remove();
		String html2 = jsoup.body().html();
		System.out.println(html2);
        for (Element element : elements) {
//            String img = element.attr("src");
//            element.removeAttr("src");
//            element.attr("data-src",img);
//            img = searchStrAndAppendStr(img,"&","amp;");
//            html = html.replace(img,"");
			//style="display:none;"
//			Element element1 =  element.attr("style","display:none;");
//			System.out.println(element1.html());
        }
//        html = html.replace("https://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&amp;action=mpvideo&amp;auto=0&amp;vid=wxv_1328148541432315909","1");
//        System.out.println(html);
    }

    /**
     * 字符串中特定字符后加上一个新字符
     * @param str  原始字符串
     * @param searchStr  特定字符
     * @param appendStr  新添加字符串
     * @return
     */
    public static String searchStrAndAppendStr(String str, String searchStr, String appendStr) {
        StringBuffer strBuf = new StringBuffer(str);
        //查询字符出现的第一个索引位置
        int index = strBuf.indexOf(searchStr);
        //获取传入字符大小
        int searchStrLength = StringUtil.getStrCount(searchStr);
        while (index != -1) {
            //添加字符
            strBuf.insert((index + searchStrLength), appendStr);
            //查询第二，三,n个字符出现位置
            index = strBuf.indexOf(searchStr, index + 1);
        }
        return strBuf.toString();
    }
    /**
     * 得到传入字符串的字节大小
     *
     * @param str
     * @return
     */
    public static int getStrCount(String str) {
        if (str == null || str.length() == 0) {
            return 0;
        }
        int count = 0;
        char[] chs = str.toCharArray();
        for (int i = 0; i < chs.length; i++) {
            count += (chs[i] > 0xff) ? 3 : 1;
        }
        return count;
    }
	/**
	 * 生成十位随机字符串
	 * @return
	 */
	public static String generateId() {
		return RandomStringUtils.random(10, true, true);
	}
}
